package com.personal.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.personal.model.system.SysUser;
import com.personal.system.entity.seckill.Goods;
import com.personal.system.entity.seckill.OrderInfo;
import com.personal.system.entity.seckill.SeckillGoods;
import com.personal.system.entity.seckill.SeckillOrder;

import java.util.List;

public interface SeckillService extends IService<SeckillGoods> {

    Object getSeckillGoodsList(Page<Goods> page);

    IPage<SeckillGoods> selectPage(Page<SeckillGoods> pageParam);

    SeckillGoods getById(Long id);

    Object getPath(Long goodsId);

    boolean checkPath(long goodsId,String path);

    SeckillOrder getOrderByUserNameGoodsId(String userId,long goodsId);

    OrderInfo insert(SysUser user, SeckillGoods goods);

    long getMiaoResult(long goodsId);

    int updateGoods(SeckillGoods goods);

}
